package demo1;

import javax.xml.namespace.QName;
import java.util.Comparator;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-11-25
 * Time: 19:13
 */
public class NameComparator implements Comparator <Student>{

    public int compare(Student o1,Student o2){

        return o1.name.compareTo(o2.name) ;
    }
}
